package testcase;

import static org.junit.Assert.*;
import entity.Box;
import org.junit.Test;

public class BoxTest {

        @Test
        public void testGetX() {
	                class CellStub extends Box{
	                        public int getX(int number){
	                                return cellarr[number].getX();
	                }
	        };
	        CellStub cellstub  = new CellStub();
	        int result = cellstub.getX(39);
	        assertEquals (result,40);
        }

        @Test
        public void testGetY() {
	                class CellStub extends Box{
	                        public int getY(int number){
	                                return cellarr[number].getY();
	                }
	        };
	        CellStub cellstub  = new CellStub();
	        int result = cellstub.getY(39);
	        assertEquals (result,173);
        
        }
        
        @Test
        public void testGetType() {               
	                class CellStub extends Box{
	                        public char getType(int number){
	                                return cellarr[number].getType();
	                }
	        };
	        CellStub cellstub  = new CellStub();
	        char result = cellstub.getType(39);
	        assertEquals (result,'N');	        
        }

}